#include "Shape.h"

Shape::Shape(void)
{
	for (int i=0;i<3;i++)
	{
		mat_ambient[i] = 0;
		mat_diffuse[i] = 0;
		mat_specular[i] = 0;
	}
	mat_shineness=0;
	reflectance=0;
	index=0;
}

Shape::Shape( float amb[3], float dif[3], float spe[3], float shine, float refl, int sindex)
{
	Init(amb,dif,spe,shine,refl,sindex);
}

Shape::~Shape(void)
{
}

void Shape::Init( float amb[3], float dif[3], float spe[3], float shine, float refl ,int sindex)
{
	for (int i=0;i<3;i++)
	{
		mat_ambient[i] = amb[i];
		mat_diffuse[i] = dif[i];
		mat_specular[i] = spe[i];
	}
	mat_shineness=shine;
	reflectance=refl;
	index=sindex;
}
